import 'package:flutter/material.dart';

class QuestionArea extends StatefulWidget {
  QuestionArea(this._questionNum, this._questionName);
  final _questionName;
  final _questionNum;
  @override
  State<StatefulWidget> createState() => new QuestionAreaState();
}

class QuestionAreaState extends State<QuestionArea> with TickerProviderStateMixin{

  // void initState(){
  //   super.initState();
  //   Animation animation = ;
  //   AnimationController animationController = new AnimationController( duration: new Duration( milliseconds: 500), vsync: this);
  // }


  @override
  Widget build(BuildContext context) {
    return new Container(
      alignment: Alignment.center,
      decoration: new BoxDecoration(color: Colors.white),
      padding: const EdgeInsets.fromLTRB(0.0, 10.0, 0.0, 10.0),
      child: new Text(
        '题目${widget._questionNum}: ${widget._questionName}',
        style: new TextStyle(fontSize: 20.0, color: Colors.black),
      ),
    );
  }
}
